#ifndef JZ_ENGINE_COROUTINE_H_
#define JZ_ENGINE_COROUTINE_H_

#include "jzCo/JZCo.h"

class JZNodeEngine;
class JZEngineCoroutine : public JZCoCoroutine
{
public:
    JZEngineCoroutine(JZNodeEngine *engine);
    ~JZEngineCoroutine();

    virtual void beforeYield() override;
    virtual void beforeResume() override;
    virtual void endTask() override;

protected:    
    JZNodeEngine *m_engine;
    int m_coId;
};


#endif